{layout name="layout" /}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            课程>>{$data['name']}
            <small>{$data['describe']}</small>
        </h1>

    </section>

    <!-- Main content -->
    <section class="content">
        <!-- Small boxes (Stat box) -->
        <div class="row">
            <section class="col-lg-6 connectedSortable">
                <h4><strong >实验</strong></h4>
                <!-- Chat box -->
                <div  class="form-control" style="height: 400px; overflow:scroll">
                    <div style="border: 1px  #000000; width: 90%; margin: 0 auto;">
                    <span>
                    <table>
                        <tr >
                            <td style="width: 150px;">ID</td>
                            <td style="width: 150px;">实验名称</td>
                            <td style="width: 150px;">实验描述</td>
                            <td style="width: 150px;">要求</td>
                            <td style="width: 150px;">点击进入</td>
                        </tr>
                        <?php foreach($result as $row): ?>
                        <tr >
                            <td style="width: 150px;">{$row.project_id}</td>
                            <td style="width: 150px;">{$row.name}</td>
                            <td style="width: 150px;">{$row.describe}</td>
                            <td style="width: 150px;"><?php if($row['status']==0){echo "个人";}else{echo "组";} ?></td>
                            <td style="width: 150px;"><a href="/index/Course/courseLook?course_id={$data['course_id']}&status={$row.status}&project_id={$row.project_id}&course_name={$data['name']}&project_name={$row.name}">点击进入</a></td>
                        </tr>
                        <?php endforeach; ?>
                    </table>
                    </span>
                    </div>
                </div>
            </section>
            <section class="col-lg-6 connectedSortable">
                <h4><strong >给该课程添加学生（按班级添加）</strong></h4>
                <form action="/index/Course/addCoursePerson" method="post">
                    <div class="form-group has-feedback">
                        <input type="text" class="form-control" placeholder="请输入班级ID" name="classId">
                        <input type="hidden" name="course_id" value="{$data['course_id']}">
                    </div>

                    <div class="row">
                        <!-- /.col -->
                        <div class="col-xs-4">
                            <button type="submit" class="btn btn-primary btn-block btn-flat">添加</button>
                        </div>
                        <!-- /.col -->
                    </div>
                </form>
                <!-- Chat box -->
                <div  class="form-control" style="height: 400px; overflow:scroll">
                    <div style="border: 1px  #000000; width: 90%; margin: 0 auto;">
                    <span>
                    <table>
                        <tr >
                            <td style="width: 150px;">ID</td>
                            <td style="width: 150px;">班级名称</td>
                            <td style="width: 150px;">班级描述</td>
                        </tr>
                        <?php foreach($res as $row): ?>
                        <tr >
                            <td style="width: 150px;">{$row.class_id}</td>
                            <td style="width: 150px;">{$row.name}</td>
                            <td style="width: 150px;">{$row.describe}</td>
                        </tr>
                        <?php endforeach; ?>
                    </table>
                    </span>
                    </div>
                </div>
            </section>
        </div>



    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
